package com.example.administrator.fangbook.appliction;

import android.app.Application;

import com.example.administrator.fangbook.dataLibrary.DataHelp;
import com.j256.ormlite.android.apptools.OpenHelperManager;


/**
 * Created by Administrator on 2018/11/9.
 */

public class HtlApplication extends Application {
    private static HtlApplication application;
    private DataHelp mDataHelper;

    @Override
    public void onCreate() {
        super.onCreate();
        application = this;
        mDataHelper = OpenHelperManager.getHelper(getApplicationContext(), DataHelp.class);
    }

    public DataHelp getmDataHelper() {
        return mDataHelper;
    }

    public static HtlApplication getApplication() {
        return application;
    }

    /**
     * 判断本书是否是资源里面的书传入的章节id是否在书的资源里面
     *
     * @param bookId
     * @param chapterId
     * @return
     */
    public boolean isBookChapterInAsset(String bookId, String chapterId) {
        return false;
    }
}
